import request from '@/utils/request'

//个人述职
export function getKpiPersonList(data) {//查询接口
  return request({
    url: '/kpiinfo/list',
    method: 'post',
    data
  })
}

export function createKpiPerson(data) {//新增接口
  return request({
    url: '/kpiinfo/create',
    method: 'post',
    data
  })
}

export function updateKpiPerson(data) {//修改
  return request({
    url: '/kpiinfo/update',
    method: 'put',
    data
  })
}

export function deleteKpiPerson(data) {//删除
  return request({
    url: '/kpiinfo/delete',
    method: 'delete',
    data
  })
}

export function downloadPdf(data) {//查询接口
  return request({
    url: '/kpiinfo/downloadPdf',
    method: 'post',
    data
  })
}

//数据汇总 个人述职记录
export function getKpiInfoListCount(data) {
  return request({
    url: '/kpiinfo/getkpiinfolist',
    method: 'post',
    data
  })
}

//数据汇总 个人述职记录
export function getNoPageList(data) {
  return request({
    url: '/kpiinfo/getnopagelist',
    method: 'post',
    data
  })
}


//个人述职记录界面跳转

export function getUserIdList(userid) {
  return request({
    url: '/kpiinfo/selectlist?userid='+userid,
    method: 'post',
  })
}

